﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_Operators_ServiceItem : System.Web.UI.Page
{
    public Guid? ServiceID
    {
        get;
        set;
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request["ServiceID"] != null)
                ServiceID = new Guid(Request["ServiceID"]);

            for (int i = 0; i < define.Unit.Length; i++)
            {
                ListItem item = new ListItem
                {
                    Value = i.ToString(),
                    Text = define.Unit[i]
                };
                if (i == 0)
                    item.Selected = true;
                this.ddlUnit.Items.Add(item);
                this.ddlUnit1.Items.Add(item);
            }

            this.ddlUnitCurrency.Items.AddRange(DropDownListHelper.Currencies);
            this.ddlCurrency.Items.AddRange(DropDownListHelper.Currencies);

            this.ddlUnitCurrency.SelectedIndex = 1;
        }
    }
}
